$OpenBSD: patch-src_ptytty_c,v 1.1 2012/12/07 18:23:40 naddy Exp $
--- src/ptytty.c.orig	Thu Sep 19 09:40:39 2002
+++ src/ptytty.c	Fri Dec  7 17:53:51 2012
@@ -102,7 +102,7 @@ rxvt_get_pty(int *fd_tty, const char **ttydev)
 	extern char    *ptsname();
 
 #  ifdef PTYS_ARE_GETPT
-	pfd = getpt();
+	pfd = posix_openpt(O_RDWR | O_NOCTTY);
 #  else
 	pfd = open("/dev/ptmx", O_RDWR | O_NOCTTY, 0);
 #  endif
